<template>
  <div>
    <h2>我是Profile组件</h2>
    <p>{{$route.query}}</p>
    <p>{{$route.query.name}}</p>
  </div>
</template>

<script>
export default {
  name: "Profile",
  // 创建时调用
  created() {
    console.log('Profile created')
  },
  // 销毁时调用(生命周期结束)
  destroyed () {
    console.log("Profile destroyed")
  }
}
</script>

<style>

</style>